package com.ethan.cj.ssm.service.impl;

import com.ethan.cj.ssm.dao.RoleDao;
import com.ethan.cj.ssm.entity.Role;
import com.ethan.cj.ssm.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 角色service层实现
 */
@Service
public class RoleServiceImpl implements RoleService{
    @Autowired
    private RoleDao roleDao;
    @Override
    public List<Role> list() {
        return roleDao.list();
    }
}
